package com.ruoyi.project.user.appUser.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * app用户表 red_packet_app_user
 * 
 * @author ruoyi
 * @date 2018-08-31
 */
public class AppUser extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** app用户id */
	private String appUserId;
	/** 用户微信昵称 */
	private String nickName;
	/** 用户头像（个人上传） */
	private String headUrl;
	/** 用户私人昵称 */
	private String userNickName;
	/** 性别 0:女 1：男 */
	private String sex;
	/** 所在城市 */
	private String city;
	/** 所在省份 */
	private String province;
	/** 所在国家 */
	private String country;
	/** 用户头像(微信) */
	private String headimgurl;
	/** 用户token */
	private String userToken;
	/** 用户电话 */
	private String userPhone;
	/** 用户登陆密码 */
	private String userPassword;
	/** 上2级用户id */
	private String topOneId;
	/** 上1级用户id */
	private String topTwoId;
	/** 推荐人id:SELF：自己 */
	private String referUser;
	/** 用户状态NORMAL：正常 LOCKING:锁定 */
	private String userStatus;
	/** 经度 */
	private BigDecimal userLongitude;
	/** 纬度 */
	private BigDecimal userLatitude;
	/** 推送通道 */
	private String registrationId;
	/** 最后ip地址 */
	private String ip;
	/** 设备唯一识别码 */
	private String deviceId;
	/** 设备名称 */
	private String deviceName;
	/** 创建时间 */
	private Date ctime;
	/** 有效范围 */
	private BigDecimal effectiveRange;
	/** 用户邀请码 */
	private String invitationCode;
	/** 用户支付宝账户 */
	private String alipayNo;
	/** 用户真实姓名  */
	private String relaName;
	/**  */
	private Date lastLoginTime;

	public void setAppUserId(String appUserId) 
	{
		this.appUserId = appUserId;
	}

	public String getAppUserId() 
	{
		return appUserId;
	}
	public void setNickName(String nickName) 
	{
		this.nickName = nickName;
	}

	public String getNickName() 
	{
		return nickName;
	}
	public void setHeadUrl(String headUrl) 
	{
		this.headUrl = headUrl;
	}

	public String getHeadUrl() 
	{
		return headUrl;
	}
	public void setUserNickName(String userNickName) 
	{
		this.userNickName = userNickName;
	}

	public String getUserNickName() 
	{
		return userNickName;
	}
	public void setSex(String sex) 
	{
		this.sex = sex;
	}

	public String getSex() 
	{
		return sex;
	}
	public void setCity(String city) 
	{
		this.city = city;
	}

	public String getCity() 
	{
		return city;
	}
	public void setProvince(String province) 
	{
		this.province = province;
	}

	public String getProvince() 
	{
		return province;
	}
	public void setCountry(String country) 
	{
		this.country = country;
	}

	public String getCountry() 
	{
		return country;
	}
	public void setHeadimgurl(String headimgurl) 
	{
		this.headimgurl = headimgurl;
	}

	public String getHeadimgurl() 
	{
		return headimgurl;
	}
	public void setUserToken(String userToken) 
	{
		this.userToken = userToken;
	}

	public String getUserToken() 
	{
		return userToken;
	}
	public void setUserPhone(String userPhone) 
	{
		this.userPhone = userPhone;
	}

	public String getUserPhone() 
	{
		return userPhone;
	}
	public void setUserPassword(String userPassword) 
	{
		this.userPassword = userPassword;
	}

	public String getUserPassword() 
	{
		return userPassword;
	}
	public void setTopOneId(String topOneId) 
	{
		this.topOneId = topOneId;
	}

	public String getTopOneId() 
	{
		return topOneId;
	}
	public void setTopTwoId(String topTwoId) 
	{
		this.topTwoId = topTwoId;
	}

	public String getTopTwoId() 
	{
		return topTwoId;
	}
	public void setReferUser(String referUser) 
	{
		this.referUser = referUser;
	}

	public String getReferUser() 
	{
		return referUser;
	}
	public void setUserStatus(String userStatus) 
	{
		this.userStatus = userStatus;
	}

	public String getUserStatus() 
	{
		return userStatus;
	}
	public void setUserLongitude(BigDecimal userLongitude) 
	{
		this.userLongitude = userLongitude;
	}

	public BigDecimal getUserLongitude() 
	{
		return userLongitude;
	}
	public void setUserLatitude(BigDecimal userLatitude) 
	{
		this.userLatitude = userLatitude;
	}

	public BigDecimal getUserLatitude() 
	{
		return userLatitude;
	}
	public void setRegistrationId(String registrationId) 
	{
		this.registrationId = registrationId;
	}

	public String getRegistrationId() 
	{
		return registrationId;
	}
	public void setIp(String ip) 
	{
		this.ip = ip;
	}

	public String getIp() 
	{
		return ip;
	}
	public void setDeviceId(String deviceId) 
	{
		this.deviceId = deviceId;
	}

	public String getDeviceId() 
	{
		return deviceId;
	}
	public void setDeviceName(String deviceName) 
	{
		this.deviceName = deviceName;
	}

	public String getDeviceName() 
	{
		return deviceName;
	}
	public void setCtime(Date ctime) 
	{
		this.ctime = ctime;
	}

	public Date getCtime() 
	{
		return ctime;
	}
	public void setEffectiveRange(BigDecimal effectiveRange) 
	{
		this.effectiveRange = effectiveRange;
	}

	public BigDecimal getEffectiveRange() 
	{
		return effectiveRange;
	}
	public void setInvitationCode(String invitationCode) 
	{
		this.invitationCode = invitationCode;
	}

	public String getInvitationCode() 
	{
		return invitationCode;
	}
	public void setAlipayNo(String alipayNo) 
	{
		this.alipayNo = alipayNo;
	}

	public String getAlipayNo() 
	{
		return alipayNo;
	}
	public void setRelaName(String relaName) 
	{
		this.relaName = relaName;
	}

	public String getRelaName() 
	{
		return relaName;
	}
	public void setLastLoginTime(Date lastLoginTime) 
	{
		this.lastLoginTime = lastLoginTime;
	}

	public Date getLastLoginTime() 
	{
		return lastLoginTime;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appUserId", getAppUserId())
            .append("nickName", getNickName())
            .append("headUrl", getHeadUrl())
            .append("userNickName", getUserNickName())
            .append("sex", getSex())
            .append("city", getCity())
            .append("province", getProvince())
            .append("country", getCountry())
            .append("headimgurl", getHeadimgurl())
            .append("userToken", getUserToken())
            .append("userPhone", getUserPhone())
            .append("userPassword", getUserPassword())
            .append("topOneId", getTopOneId())
            .append("topTwoId", getTopTwoId())
            .append("referUser", getReferUser())
            .append("userStatus", getUserStatus())
            .append("userLongitude", getUserLongitude())
            .append("userLatitude", getUserLatitude())
            .append("registrationId", getRegistrationId())
            .append("ip", getIp())
            .append("deviceId", getDeviceId())
            .append("deviceName", getDeviceName())
            .append("ctime", getCtime())
            .append("effectiveRange", getEffectiveRange())
            .append("invitationCode", getInvitationCode())
            .append("alipayNo", getAlipayNo())
            .append("relaName", getRelaName())
            .append("lastLoginTime", getLastLoginTime())
            .toString();
    }
}
